<div id="right-indent">
		<div id="sidebar" class="widget-area" >
			
			<ul id="menu" class="widget">
				<h3 class="widget-title">Danh Mục</h3>		
			
			<?php if(isset($category)) {?>
				<ul>
					<?php $i=-1;foreach($category as $cate) {$i++;?>
					<li>
						<div class="arrow" id="arrow_<?php echo $i;?>" onclick="javascript:showhide('<?php echo $i;?>');"></div>
						<a href="<?php echo $cate['href'];?>" class="cate" id="parent" title="<?php echo $cate['cate_name'];?>"><?php echo $cate['cate_name'];?></a>
						<?php if(isset($cate['value']) && $cate['value']!= null) {?>
						<ul class="hidden" id="child_<?php echo $i;?>">
						<?php foreach ($cate['value'] as $value) {?>
							<li>
							<a  href="<?php echo $value['href'];?>" title="<?php echo $value['cate_name'];?>"><?php echo $value['cate_name'];?></a></li>
							<?php }?>
						</ul>
						<?php }?>
					</li>
					<?php }?>
					<input type="hidden" id="num_cate" value="<?php echo $i;?>"/>
				</ul>
				<?php }?>
			</ul>
			<ul class="widget" id="support">
				<h3 class="widget-title">Hỗ Trợ Trực Tuyến</h3>		
				<li class="support">
					<?php if(isset($support)) {?>
					<?php foreach($support as $sup) {?>
					<table width="230" cellpadding="5">
					<tbody>
					<tr>
						<td width="24%" align="center"><a border="0" href="ymsgr:sendim?<?php Echo $sup['user_name'];?>"><img width="20" height="27" src="<?php echo $link_hinh; ?>icon_3.jpg"></a></td>
						<td width="76%" align="center"><a border="0" href="ymsgr:sendim?<?php Echo $sup['user_name'];?>"><img width="125" height="25" src="http://opi.yahoo.com/online?u=<?php Echo $sup['user_name'];?>&amp;t=2"></a></td>
					</tr>
					<tr>
						<td align="center" class="desc" colspan="2">
							<span style="color:blue;font-weight:bold"><?php Echo $sup['position'];?></span>
							<br><br>

							<strong><?php Echo $sup['full_name'];?></strong>
							<br><br>
							<?php if($sup['phone'] != "") {?>
							Số ĐT : <?php Echo $sup['phone'];?>
							<?php }?>
						</td>
					
					</tr>
					</tbody>					
					</table>
					<br>
					<?php }?>
					<?php }?>
				</li>
				
			</ul>
			
			<ul id="banner" class="widget">
				<h3 class="widget-title">Quảng Cáo</h3>		
				
				<?php if(isset($banner)) {?>
				
				<?php foreach($banner as $ban) {?>
				<li>
					<img src="<?php echo $ban['image']?>" width="230"/>
				</li>
				<?php }?>
				<?php }?>
							
			</ul>			
		</div>
	</div>
	<script type="text/javascript">
		function showhide(id){
			if(flag[id]==false)
			{
				$('#child_'+id).show('slow');
				flag[id]=true;
				$('#arrow_'+id).toggleClass('arrowA');
			}
			else
			{
				$('#child_'+id).hide('slow');
				flag[id]=false;
				$('#arrow_'+id).removeClass('arrowA');
			}
		}
	</script>
	<script type="text/javascript">
	var flag = [];
	$(document).ready(function(){
	for(var i = 0; i < $("#num_cate").val(); i++)
		flag[i] = false;

	$('.hidden').hide();

});

function show_left_menu(id){
	ob1 = document.getElementById(id + "_title");
	ob2 = document.getElementById(id + "_link");
	
	if(ob2.className == "left_menu_hidden"){
		ob1.className	= "left_menu_title_current";
		ob2.className	= "left_menu_show";
	}
	else{
		ob1.className	= "left_menu_title";
		ob2.className = "left_menu_hidden";
	}
}

function switchLeftMenu(){
	if($('#function_list').hasClass('main_left_menu_title_expand')){
		$('.left_menu_title').removeClass('left_menu_title').addClass('left_menu_title_current');
		$('.left_menu_hidden').removeClass('left_menu_hidden').addClass('left_menu_show');
		
		$('#function_list').removeClass('main_left_menu_title_expand').addClass('main_left_menu_title_collapse');
		return false;
	}
	
	if($('#function_list').hasClass('main_left_menu_title_collapse')){
		$('.left_menu_title_current').removeClass('left_menu_title_current').addClass('left_menu_title');
		$('.left_menu_show').removeClass('left_menu_show').addClass('left_menu_hidden');
		
		$('#function_list').removeClass('main_left_menu_title_collapse').addClass('main_left_menu_title_expand');
		return false;	
	}
}
</script>